//保留字段
const auth = { requiresAuth: true } 
/**
 * 在主框架内显示
 */
const frameIn = [
  {
    path: '/',
    redirect: {name: 'index'},
    component: () => import('@/components/layout'),
    children: [
      // 首页
      {
        path: '/index',
        name: 'index',
        meta: {title:'首页'},
        component: () => import('@/pages/core/index')
      },
      
      // 首页管理
      {
        path: '/home/brand',
        name: 'brandManage',
        meta: {title:'首页管理'},
        component: () => import('@/pages/home/brand')
      },
      // 资讯信息管理
      {
        path: '/advert/list',
        name: 'advertList',
        meta: {title: '资讯信息管理'},
        component: () => import('@/pages/advert/list')
      },
      {
        path: '/advert/detail/:id',
        name: 'advertDetail',
        meta: {title: '资讯详情'},
        component: () => import('@/pages/advert/detail')
      },
      {
        path: '/advert/add/:type',
        name: 'addAdvert',
        meta: {title: '添加资讯'},
        component: () => import('@/pages/advert/add')
      },
      {
        path: '/advert/edit/:id',
        name: 'editAdvert',
        meta: {title: '修改资讯'},
        component: () => import('@/pages/advert/edit')
      },
      // 学员管理
      {
        path: '/customer/list',
        name: 'customerList',
        meta: {title: '学员管理'},
        component: () => import('@/pages/customer/list')
      },
      {
        path: '/customer/detail/:id',
        name: 'customerDetail',
        meta: {title: '学员详情'},
        component: () => import('@/pages/customer/detail')
      },
      {
        path: '/customer/edit/:id',
        name: 'editCustomer',
        meta: {title: '编辑学员资料'},
        component: () => import('@/pages/customer/edit')
      },
      // 课程分类
      {
        path: '/course/classify',
        name: 'classifyList',
        meta: {title: '课程分类列表'},
        component: () => import('@/pages/course/classify')
      },
      {
        path: '/course/classify/add',
        name: 'addClassify',
        meta: {title: '新增课程分类'},
        component: () => import('@/pages/course/classify/add')
      },
      // 课程内容
      {
        path: '/course/course',
        name: 'courseList',
        meta: {title: '课程列表'},
        component: () => import('@/pages/course/course')
      },
      {
        path: '/course/um',
        name: 'umList',
        meta: {title: '全域营销概览列表'},
        component: () => import('@/pages/course/um')
      },
      {
        path: '/course/course/detail/:id',
        name: 'courseDetail',
        meta: {title: '课程详情'},
        component: () => import('@/pages/course/course/detail')
      },
      {
        path: '/course/course/add',
        name: 'addCourse',
        meta: {title: '新增课程'},
        component: () => import('@/pages/course/course/add')
      },
      {
        path: '/course/course/edit/:id',
        name: 'editCourse',
        meta: {title: '修改课程内容'},
        component: () => import('@/pages/course/course/edit')
      },
      // 合作商分类
      {
        path: '/partner/classify',
        name: 'partnerClassifyList',
        meta: {title: '品牌案例分类'},
        component: () => import('@/pages/partner/classify')
      },
      {
        path: '/partner/classify/add',
        name: 'partnerAddClassify',
        meta: {title: '新增品牌案例分类'},
        component: () => import('@/pages/partner/classify/add')
      },
      // 品牌案例
      {
        path: '/partner/news',
        name: 'partnerList',
        meta: {title: '品牌案例内容列表'},
        component: () => import('@/pages/partner/news')
      },
      {
        path: '/partner/news/detail/:id',
        name: 'partnerDetail',
        meta: {title: '品牌案例详情'},
        component: () => import('@/pages/partner/news/detail')
      },
      {
        path: '/partner/news/add',
        name: 'addPartner',
        meta: {title: '新增品牌案例'},
        component: () => import('@/pages/partner/news/add')
      },
      {
        path: '/partner/news/edit/:id',
        name: 'editPartner',
        meta: {title: '修改品牌案例'},
        component: () => import('@/pages/partner/news/edit')
      },
      // 等级规则
      {
        path: '/grade/list',
        name: 'gradeList',
        meta: {title: '等级规则列表'},
        component: () => import('@/pages/grade/list')
      },
      {
        path: '/grade/add',
        name: 'addGrade',
        meta: {title: '新增等级规则'},
        component: () => import('@/pages/grade/add')
      },
      {
        path: '/grade/edit/:id',
        name: 'editGrade',
        meta: {title: '修改等级规则'},
        component: () => import('@/pages/grade/edit')
      },
      // QA管理
      {
        path: '/qa/list',
        name: 'qaList',
        meta: {title: 'QA管理'},
        component: () => import('@/pages/qa/list')
      },
      // 超级管理员
      {
        path: '/administrators/list',
        name: 'administratorsList',
        meta: {title: '管理员列表', ...auth},
        component: () => import('@/pages/administrators/list')
      },
      {
        path: '/administrators/add',
        name: 'addAdministrators',
        meta: {title: '新增管理员', ...auth},
        component: () => import('@/pages/administrators/add')
      },
      {
        path: '/administrators/edit/:id',
        name: 'editAdministrators',
        meta: {title: '修改管理员', ...auth},
        component: () => import('@/pages/administrators/edit')
      },
      // 报表
      {
        path: '/report/course',
        name: 'courseReport',
        meta: {title: '课程统计报表'},
        component: () => import('@/pages/report/course')
      },
      {
        path: '/report/customer',
        name: 'customerReport',
        meta: {title: '学习状况报表'},
        component: () => import('@/pages/report/customer')
      },
      {
        path: '/report/activity',
        name: 'activityReport',
        meta: {title: '活动报名报表'},
        component: () => import('@/pages/report/activity')
      },
      //系统 - 修改密码
      {
        path: '/system/modify_password',
        name: 'modifyPassword',
        meta: {title: '修改密码'},
        component: () => import('@/pages/system/modify_password')
      },
      {
        path: '/system/user',
        name: 'user',
        meta: {title: '个人信息'},
        component: () => import('@/pages/system/user')
      },
      // 友情链接列表
      {
        path: '/link/blogroll',
        name: 'blogroll',
        meta: {title: '友情链接列表'},
        component: () => import('@/pages/link/blogroll')
      },
      // 新增友情链接
      {
        path: '/link/blogroll/add',
        name: 'blogrollAdd',
        meta: {title: '新增友情链接'},
        component: () => import('@/pages/link/blogroll/add')
      },
      // 内部链接列表
      {
        path: '/link/internalLink',
        name: 'internalLink',
        meta: {title: '内部链接列表'},
        component: () => import('@/pages/link/internalLink')
      },
      // 新增内部链接
      {
        path: '/link/internalLink/add',
        name: 'internalLinkAdd',
        meta: {title: '新增内部链接'},
        component: () => import('@/pages/link/internalLink/add')
      },
      // 聚合页面列表
      {
        path: '/aggregate',
        name: 'aggregate',
        meta: {title: '聚合页面列表'},
        component: () => import('@/pages/aggregate')
      },
       // 新增聚合页面关键词
       {
        path: '/aggregate/add',
        name: 'aggregateAdd',
        meta: {title: '新增关键词'},
        component: () => import('@/pages/aggregate/add')
      },
      // 聚合页面关键词信息
      {
        path: '/aggregate/detail/:id',
        name: 'aggregateDetail',
        meta: {title: '关键词信息'},
        component: () => import('@/pages/aggregate/detail')
      },
      // 聚合页面关键词修改
      {
        path: '/aggregate/edit/:id',
        name: 'aggregateEdit',
        meta: {title: '关键词修改'},
        component: () => import('@/pages/aggregate/edit')
      },
       // 版权声明管理
       {
        path: '/statement/list',
        name: 'statement',
        meta: {title: '版权声明管理'},
        component: () => import('@/pages/statement/list')
      },
    ]
  },
  
]

/**
 * 在主框架外显示
 */
const frameOut = [
  // 登录
  {
    path: "/login",
    name: "login",
    meta: {title:'登录'},
    component: () => import('@/pages/core/login')
  }
]

// 重新组织后导出
export default [
  ...frameIn,
  ...frameOut
]